//
//  LSZOfflineVideoManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/3/16.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZOfflineVideoManager.h"

@implementation LSZOfflineVideoManager
-(id)initWithOfflineVideo :(NSArray *)array
{
    self = [super init];
    if (self) {
        self.arrayData = [[NSMutableArray alloc]init];
        NSMutableArray * arrayMutAdd = [[NSMutableArray alloc]init];
        for (NSDictionary * dic in array) {
            LSZOfflineVideoMg * mg =  [[LSZOfflineVideoMg alloc]init];
            mg.imageViewUrl = NullStringjudgment(NSStr(dic[@"imageViewUrl"]));
            mg.name = NullStringjudgment(NSStr(dic[@"name"]));
            mg.title = NullStringjudgment(NSStr(dic[@"title"]));
            if ([dic objectForKey:@"style"]) {
                mg.style = NullStringjudgment(NSStr(dic[@"style"]));
            }
            if ([dic objectForKey:@"id_id"]) {
                mg.id_id = NullStringjudgment(NSStr(dic[@"id_id"]));
            }
            [arrayMutAdd addObject:mg];
        }
        self.arrayData = arrayMutAdd;
    }
    return self;
}
@end
@implementation LSZOfflineVideoMg
@end
